package com.atguigu.edu2021.mock.mapper;

import com.atguigu.edu2021.mock.bean.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper ;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 订单表 订单表 Mapper 接口
 * </p>
 *
 * @author zhangchen
 * @since 2021-09-05
 */
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {


    @Select("select od.course_id  from  order_info oi , order_detail od where oi.id =od.order_id and order_status='1002' and oi.user_id=#{userId}")
    public List<Long> getOrderCourseIdList(Long userId);

}
